package com.demo.service.impl;

import com.demo.dao.IInfoDao;
import com.demo.entity.Info;
import com.demo.service.IInfoService;
import com.demo.vo.InfoVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InfoServiceImpl implements IInfoService {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private IInfoDao dataDao;

    @Override
    public List<Info> queryByPage(InfoVo user) {
        return dataDao.queryByPage(user);
    }


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dataDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Info record) {
        return dataDao.insert(record);
    }

    @Override
    public int insertSelective(Info record) {
        return dataDao.insertSelective(record);
    }

    @Override
    public Info selectByPrimaryKey(Integer id) {
        return dataDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Info record) {
        return dataDao.updateByPrimaryKeySelective(record);
    }


    @Override
    public int queryCount(InfoVo user) {
        return dataDao.queryCount(user);
    }
}
